//
//  XBMaskView.h
//  XingbookPark
//
//  Created by jiaozhujun on 14-10-16.
//
//

#import <UIKit/UIKit.h>
#import "HKResultMessage.h"

#define XB_RETRY_MSG @"\n点击重试"
typedef void(^XBOnClickBlock)(void);
typedef void(^XBOnCompleteBlock)(BOOL completed);
@interface XBProgressView : UIView
- (void)addTo:(UIView *)parent;
- (void)showErrorMessage:(NSString *)message WithRetry:(XBOnClickBlock)retryBlock;
- (void)dismiss;
- (BOOL)showErrorMessage:(HKResultMessage *)result OnRetry:(XBOnClickBlock)retryBlock;

+ (void)dismiss;
+ (XBProgressView *)sharedInstance;
+ (BOOL)showErrorMessage:(HKResultMessage *)result OnRetry:(XBOnClickBlock)retryBlock;
@end
